using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._Raster._Reclass
{
    /// <summary>
    /// <para>Lookup</para>
    /// <para>Creates a raster by looking up values in another field in the table of the input raster.</para>
    /// <para>通过查找输入栅格表中另一个字段中的值来创建栅格。</para>
    /// </summary>    
    [DisplayName("Lookup")]
    public class Lookup : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Lookup()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_raster">
        /// <para>Input raster</para>
        /// <para>The input raster that contains a field from which to create a new raster.</para>
        /// <para>输入栅格，其中包含用于创建新栅格的字段。</para>
        /// </param>
        /// <param name="_lookup_field">
        /// <para>Lookup field</para>
        /// <para><xdoc>
        ///   <para>Field containing the desired values for the new raster.</para>
        ///   <para>It can be a numeric or string type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>包含新栅格所需值的字段。</para>
        ///   <para>它可以是数字类型或字符串类型。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para>The output raster whose values are determined by the specified field of the input raster.</para>
        /// <para>其值由输入栅格的指定字段确定的输出栅格。</para>
        /// </param>
        public Lookup(object _in_raster, object _lookup_field, object _out_raster)
        {
            this._in_raster = _in_raster;
            this._lookup_field = _lookup_field;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Lookup";

        public override string CallName => "3d.Lookup";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "compression", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_in_raster, _lookup_field, _out_raster];

        /// <summary>
        /// <para>Input raster</para>
        /// <para>The input raster that contains a field from which to create a new raster.</para>
        /// <para>输入栅格，其中包含用于创建新栅格的字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_raster { get; set; }


        /// <summary>
        /// <para>Lookup field</para>
        /// <para><xdoc>
        ///   <para>Field containing the desired values for the new raster.</para>
        ///   <para>It can be a numeric or string type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>包含新栅格所需值的字段。</para>
        ///   <para>它可以是数字类型或字符串类型。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Lookup field")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _lookup_field { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para>The output raster whose values are determined by the specified field of the input raster.</para>
        /// <para>其值由输入栅格的指定字段确定的输出栅格。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        public Lookup SetEnv(int? autoCommit = null, object cellSize = null, object compression = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, compression: compression, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}